package com.skyline.wo.model;

import java.util.Date;
import java.util.List;

import com.skyline.base.model.TokenValidatable;
import com.skyline.base.type.RemoteDeviceType;
import com.skyline.common.cache.Cachable;

public class ShortMessage implements TokenValidatable, Cachable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -1728148566829692749L;
	private String id;
	private Long ownerId;
	private String ownerNickname;
	private String ownerPortrait;
	private String text;
	// 如果是原创，则这个sourceOwnerId与ownerId相同，sourceOwnerNickname与ownerNickname相同,comment为空
	private Long sourceOwnerId;
	private String sourceOwnerNickname;
	private String comment;
	private Date createTime;
	private String submitToken;

	// 在此之前的那些转发者的Id
	private List<Long> commetterIds;
	// 在此之前的那些转发者的昵称
	private List<String> commetterNicknames;
	// 在此之前的那么转发的评论
	private List<String> comments;

	private Double spotLat;
	private Double spotLng;
	private Long spotId;
	private String spotName;

	private RemoteDeviceType remoteDeviceType;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Long getOwnerId() {
		return ownerId;
	}

	public void setOwnerId(Long ownerId) {
		this.ownerId = ownerId;
	}

	public String getOwnerNickname() {
		return ownerNickname;
	}

	public void setOwnerNickname(String ownerNickname) {
		this.ownerNickname = ownerNickname;
	}

	public String getOwnerPortrait() {
		return ownerPortrait;
	}

	public void setOwnerPortrait(String ownerPortrait) {
		this.ownerPortrait = ownerPortrait;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public Long getSourceOwnerId() {
		return sourceOwnerId;
	}

	public void setSourceOwnerId(Long sourceOwnerId) {
		this.sourceOwnerId = sourceOwnerId;
	}

	public String getSourceOwnerNickname() {
		return sourceOwnerNickname;
	}

	public void setSourceOwnerNickname(String sourceOwnerNickname) {
		this.sourceOwnerNickname = sourceOwnerNickname;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public List<Long> getCommetterIds() {
		return commetterIds;
	}

	public void setCommetterIds(List<Long> commetterIds) {
		this.commetterIds = commetterIds;
	}

	public List<String> getCommetterNicknames() {
		return commetterNicknames;
	}

	public void setCommetterNicknames(List<String> commetterNicknames) {
		this.commetterNicknames = commetterNicknames;
	}

	public List<String> getComments() {
		return comments;
	}

	public void setComments(List<String> comments) {
		this.comments = comments;
	}

	public Double getSpotLat() {
		return spotLat;
	}

	public void setSpotLat(Double spotLat) {
		this.spotLat = spotLat;
	}

	public Double getSpotLng() {
		return spotLng;
	}

	public void setSpotLng(Double spotLng) {
		this.spotLng = spotLng;
	}

	public Long getSpotId() {
		return spotId;
	}

	public void setSpotId(Long spotId) {
		this.spotId = spotId;
	}

	public String getSpotName() {
		return spotName;
	}

	public void setSpotName(String spotName) {
		this.spotName = spotName;
	}

	public RemoteDeviceType getRemoteDeviceType() {
		return remoteDeviceType;
	}

	public void setRemoteDeviceType(RemoteDeviceType remoteDeviceType) {
		this.remoteDeviceType = remoteDeviceType;
	}

	@Override
	public String getFkId() {
		return this.ownerId.toString();
	}

	@Override
	public String getSubmitToken() {
		return this.submitToken;
	}

	@Override
	public void setSubmitToken(String submitToken) {
		this.submitToken = submitToken;
	}

}
